﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace POVRay {
    public class ColorPigment : Pigment {
        public Color Color { get; set; }

        public ColorPigment(Color color) {
            Color = color;
        }

        public override string ToString(int level) {
            StringBuilder sb = new StringBuilder();

            sb.Append("pigment { ");
            sb.Append(Scene.Indentation(level + 1) + "color " + Color.ToString() + " ");
            sb.Append(GeneralParameters(level + 1));
            sb.Append(Scene.Indentation(level) + "}");

            return sb.ToString();
        }
    }
}
